//
//  WebViewController.swift
//  MyOfO
//
//  Created by Yuri on 2018/3/23.
//  Copyright © 2018年 Yuri. All rights reserved.
//

import UIKit
import WebKit

class WebViewController: UIViewController {
    
    var urlString : String!
    
    var webView : WKWebView!

    override func viewDidLoad() {
        super.viewDidLoad()
        
        title = "热门活动"

        let frame = CGRect(x: 0, y: 44, width: self.view.frame.width, height: self.view.frame.height - 44 - 20)
        webView = WKWebView(frame: frame)
        view.addSubview(webView)
        
        let url = URL(string: "http://m.ofo.so/active.html")
        webView.load(URLRequest(url: url!))
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
